package com.cy.pj.sys.service;

import com.cy.pj.common.pojo.PageObject;
import com.cy.pj.sys.pojo.SysUser;
import com.cy.pj.sys.pojo.SysUserDept;

import java.util.Map;

public interface SysUserService {
    PageObject<SysUserDept> findPageObjects(String username , Long pageCurrent);

    int validById(Integer id,Integer valid);

    int saveObject(SysUser sysUser, Integer[] roleIds);

    Map<String,Object> findObjectById(Integer userId);

    int updateObject(SysUser sysUser, Integer [] roleIds);


    int updatePassword(String password, String newPassword,String cfgPassword);



}
